//
//  DMSyndromeModel.m
//  CQKuaiYi
//
//  Created by ling on 17/1/9.
//  Copyright © 2017年 Mr.Cannon. All rights reserved.
//

#import "DMSyndromeModel.h"
#import "DMNetworkTool.h"

@implementation DMSyndromeModel

+ (void)getSyndromeDataWithURLString:(NSString *)URLString andParameters:(NSDictionary *)parameters andSuccessBlock:(void (^)(NSArray *))successBlock
{
    [[DMNetworkTool shareDMNetwork] postURL:URLString parameter:parameters completion:^(id response) {
        
        if (response == nil)
        {
            NSLog(@"shibai");
        }
        else
        {
            NSDictionary *json = response;
            NSArray *arr = json[@"data"];
            NSArray *syndromeArr = [NSArray yy_modelArrayWithClass:[DMSyndromeModel class] json:arr];
            successBlock(syndromeArr);
        }
        
    }];
}

@end
